﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace EmprestaAE.MVVM.Model
{
    [KnownType(typeof(EmprestaAE.MVVM.Model.Borrowing))]
    [DataContractAttribute]
    public class DateModel : ModelBase
    {
        [DataMember()]
        private DateTime date;

        public DateTime Date
        {
            get { return date; }
            set { if (date != value) { date = value; RaisePropertyChanged("Date"); } }
        }

        public DateModel() { date = DateTime.Now.ToLocalTime(); }

    }
}
